/*
 * Created on Apr 7, 2004
 *
 */
package littlecyberwar.model;

import java.io.*;
import java.awt.geom.AffineTransform;
import javax.swing.*;
import java.awt.*;

import littlecyberwar.model.*;
import littlecyberwar.tool.*;

/**
 * @author Milton  Soong
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class GameStateCommand extends Command  implements Serializable {
	public static final int _SUBCMD_PLAYER_CONN=1;	// new player just connected
	public static final int _SUBCMD_RESET_ALL_MOV_DISTANCE=2;	// reset all movement distance
	
	int subCmd;
	
	/**
	 * the content is subcommand dependent
	 *		_SUBCMD_PLAYER_CONN: content = Players object
	 */
	Object content;		// 
	
	public GameStateCommand( int subCmdIn ) {
		subCmd = subCmdIn;
	}

	public int getType() {
	  return ( _commandType_gameState );
	}

	/**
	 * @return
	 */
	public Object getContent() {
		return content;
	}

	/**
	 * @param object
	 */
	public void setContent(Object object) {
		content = object;
	}

}
